package com.lagou.service.impl;

import com.lagou.dao.EmployeeDao;
import com.lagou.domain.Employee;
import com.lagou.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeDao employeeDao;
    /**
     * 查询所有部门
     */
    @Override
    public List<Employee> findAll() {
        return employeeDao.findAll();
    }
    /**
     * 添加员工
     * @param employee
     */
    @Override
    public void save(Employee employee) {
        employeeDao.save(employee);

    }
}
